<?php
namespace App\Models\ProjectManage\Traits\Relationship;
/**
 * Date: 2018/6/27
 * Time: 19:53
 * Author: zeronlee
 */
trait ProjectManageRelationship {
    //one to many for check_option

    //many to many for (check_option to app)

    //many to many for app
    public function apps(){
        return $this->belongsToMany('App\Models\App','project_task_app','project_task_id','app_id');
    }
}